package com.goudan.ojcloudserviceclient.FeignClient;

import com.goudan.ojcloudserviceclient.fallback.JudgeFallBack;
import com.goudan.ojmodel.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 判题服务
 */
@FeignClient(name = "oj-cloud-judge-service",path = "/api/judge/inner",fallback = JudgeFallBack.class)
public interface JudgeFeignClient {
    @PostMapping("/do")
    QuestionSubmit doJudge(@RequestParam("questionSubmitId") Long questionSubmitId);
}
